import { NavLink } from 'react-router-dom'

const navList = [
  { path: '/waterfallFlow', name: '瀑布流' }
]

function NavViews() {
  return (
    <ul className="nav-list">
      { navList.map((item) => 
        <li key={item.name}>
          <NavLink to={item.path}>{ item.name }</NavLink>
        </li>
      ) }
    </ul>
  )
}

export default NavViews